




//
//  RoomTypeFooter.m
//  住房条件帅选器
//
//  Created by MB__Lee on 2018/5/18.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "RoomTypeFooter.h"

@interface RoomTypeFooter()

@property (weak, nonatomic) IBOutlet UITextField *minSquare;
@property (weak, nonatomic) IBOutlet UITextField *maxSquare;
@property (weak, nonatomic) IBOutlet UIButton *sureBTN;

@end


@implementation RoomTypeFooter

-(void)awakeFromNib{
    [super awakeFromNib];
    
    self.sureBTN.layer.borderColor = MB_mainSelectedColor.CGColor;
    self.sureBTN.layer.borderWidth = 0.5;
    
    
    
    self.minSquare.layer.cornerRadius = 2;
    self.maxSquare.layer.cornerRadius = 2;
    self.minSquare.clipsToBounds = YES;
    self.maxSquare.clipsToBounds = YES;
    
    
    
}
- (IBAction)makeSureBTN:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(RoomTypeFooter:sendMinSquare:maxSquare:)]) {
        [self.delegate RoomTypeFooter:self sendMinSquare:_minSquare.text maxSquare:_maxSquare.text];
    }
    
}


@end
